package com.dawn.seckilldemo.vo;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;


@AllArgsConstructor
@Getter
@ToString
public enum  RespBeanEnum {
    //通用
    SUCCESS(200,"SUCCESS"),
    ERROR(500,"服务端异常"),
    //登录模块
    LOGIN_ERROR(500210,"用户名或者密码错误"),
    MOBILE_ERROR(500211,"手机号码格式不正确"),
    BING_ERROR(500212,"参数绑定异常"),
    MOBILE_NOT_EXIST(500213,"手机号码不存在"),
    PASSWORD_UPDATE_FAIL(500214,"更新密码失败"),
    //秒杀模块
    ENTRY_STOCK(500500,"库存不足"),
    SESSION_ERROR(500502,"用户信息有误"),
    REQUEST_ILLEGAL(500503,"请求非法"),
    ACCESS_LIMIT_REAHCED(500504,"访问过于频繁，请重新访问"),
    REPEATE_ERROR(500501,"该商品每人限购一件");
    private final Integer code;
    private final String message;
}
